package com.sz.common.base.utils;

import java.util.UUID;

/**
 * Function: TODO ADD FUNCTION <br>
 * Author: wentao.chang <br>
 * Date: 2016-10-27 08:53:40
 */
public class CredentialUtils {

    public static String generateSalt() {
        String uuid = UUID.randomUUID().toString();
        uuid = uuid.replaceAll("-", "");
        return uuid.substring(5, 11);
    }

    public static String randomPassword() {
        String uuid = UUID.randomUUID().toString();
        uuid = uuid.replaceAll("-", "");
        return uuid.substring(5, 13);
    }

}
